package com.wst.system.server.service;

import com.alibaba.fastjson2.JSONObject;
import com.wst.system.server.entity.SysOpenApp;
import com.wst.system.server.entity.vo.AppLoginVo;
import com.wst.system.server.entity.vo.PageSearchVo;
import com.wst.system.server.entity.vo.SysOpenAppVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wst.system.config.exception.GlobalExcetion;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author X.I.O
 * @since 2025-01-16
 */
public interface SysOpenAppService extends IService<SysOpenApp> {


    public SysOpenApp updateSysOpenAppById(SysOpenApp sysopenapp) throws GlobalExcetion;

    public SysOpenApp saveOrUpdateSysOpenApp(SysOpenAppVo sysopenappVo) throws GlobalExcetion;

    public IPage<SysOpenApp> page(PageSearchVo vo) throws GlobalExcetion;

    public SysOpenApp getSysOpenAppByAppName(String appName) throws GlobalExcetion;

    public SysOpenApp getSysOpenAppBySecretKey(String secretKey) throws GlobalExcetion;

    public JSONObject login(AppLoginVo vo)  throws GlobalExcetion;
}